package com.cloud.note.repository;

import com.cloud.note.model.SyncLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface SyncLogRepository extends JpaRepository<SyncLog, String> {
    Page<SyncLog> findByUserIdOrderByCreatedAtDesc(String userId, Pageable pageable);

    int countByUserIdAndStatus(String userId, String status);
}